package com.css.dzj.zfjg.modules.supervisionreportinfo.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;
import java.util.Date;

/**
 * 举报基础信息表
 */
@Entity
@Table(name = "JG_TSJB_REPORT_INFO", schema = "DZJZFJG", catalog = "")
public class JgTsjbReportInfoEntity {
    private String reportInfoId;
    private String registerCode;
    private String tipObject;
    private String enterpriseCreditCode;
    private String tipType;
    private String tipTerritory;
    private String areaNumber;
    private String serviceType;
    private String serviceName;
    private String brand;
    private String tipDetail;
    private String happenPlace;
    private String status;
    private String pollutionType;
    private BigDecimal involveAmount;
    private String tagName;
    //101 已分办 102已查收（待处理） 103已拒绝
    //104 已答复 105已反馈
    private String taskState;
    private String createUser;
    private Date createTime;
    private String updateUser;
    private Date updateTime;
    private Date launchTime;
    private Date receiveTime;
    private String launchUser;
    private Date fbTime;
    private Date endTime;
    private Date fkTime;
    private String provinceCode;
    private String cityCode;
    private String countyCode;

    @Id
    @Column(name = "REPORT_INFO_ID")
    public String getReportInfoId() {
        return reportInfoId;
    }

    public void setReportInfoId(String reportInfoId) {
        this.reportInfoId = reportInfoId;
    }

    @Basic
    @Column(name = "Register_Code")
    public String getRegisterCode() {
        return registerCode;
    }

    public void setRegisterCode(String registerCode) {
        this.registerCode = registerCode;
    }

    @Basic
    @Column(name = "Tip_Object")
    public String getTipObject() {
        return tipObject;
    }

    public void setTipObject(String tipObject) {
        this.tipObject = tipObject;
    }

    @Basic
    @Column(name = "Enterprise_Credit_Code")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }

    @Basic
    @Column(name = "Tip_Type")
    public String getTipType() {
        return tipType;
    }

    public void setTipType(String tipType) {
        this.tipType = tipType;
    }

    @Basic
    @Column(name = "Tip_Territory")
    public String getTipTerritory() {
        return tipTerritory;
    }

    public void setTipTerritory(String tipTerritory) {
        this.tipTerritory = tipTerritory;
    }

    @Basic
    @Column(name = "Area_Number")
    public String getAreaNumber() {
        return areaNumber;
    }

    public void setAreaNumber(String areaNumber) {
        this.areaNumber = areaNumber;
    }

    @Basic
    @Column(name = "Service_Type")
    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    @Basic
    @Column(name = "Service_Name")
    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    @Basic
    @Column(name = "Brand")
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Basic
    @Column(name = "Tip_Detail")
    public String getTipDetail() {
        return tipDetail;
    }

    public void setTipDetail(String tipDetail) {
        this.tipDetail = tipDetail;
    }

    @Basic
    @Column(name = "Happen_Place")
    public String getHappenPlace() {
        return happenPlace;
    }

    public void setHappenPlace(String happenPlace) {
        this.happenPlace = happenPlace;
    }

    @Basic
    @Column(name = "Status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "Pollution_Type")
    public String getPollutionType() {
        return pollutionType;
    }

    public void setPollutionType(String pollutionType) {
        this.pollutionType = pollutionType;
    }

    @Basic
    @Column(name = "Involve_Amount")
    public BigDecimal getInvolveAmount() {
        return involveAmount;
    }

    public void setInvolveAmount(BigDecimal involveAmount) {
        this.involveAmount = involveAmount;
    }

    @Basic
    @Column(name = "Tag_Name")
    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    @Basic
    @Column(name = "Task_State")
    public String getTaskState() {
        return taskState;
    }

    public void setTaskState(String taskState) {
        this.taskState = taskState;
    }

    @Basic
    @Column(name = "Create_User")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "Create_Time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "Update_User")
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "Update_Time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "Launch_Time")
    public Date getLaunchTime() {
        return launchTime;
    }

    public void setLaunchTime(Date launchTime) {
        this.launchTime = launchTime;
    }

    @Basic
    @Column(name = "Receive_Time")
    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    @Basic
    @Column(name = "Launch_User")
    public String getLaunchUser() {
        return launchUser;
    }

    public void setLaunchUser(String launchUser) {
        this.launchUser = launchUser;
    }

    @Basic
    @Column(name = "Fb_Time")
    public Date getFbTime() {
        return fbTime;
    }

    public void setFbTime(Date fbTime) {
        this.fbTime = fbTime;
    }

    @Basic
    @Column(name = "End_Time")
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Basic
    @Column(name = "Fk_Time")
    public Date getFkTime() {
        return fkTime;
    }

    public void setFkTime(Date fkTime) {
        this.fkTime = fkTime;
    }

    @Basic
    @Column(name = "province_code")
    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    @Basic
    @Column(name = "city_code")
    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    @Basic
    @Column(name = "county_code")
    public String getCountyCode() {
        return countyCode;
    }

    public void setCountyCode(String countyCode) {
        this.countyCode = countyCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgTsjbReportInfoEntity that = (JgTsjbReportInfoEntity) o;
        return Objects.equals(reportInfoId, that.reportInfoId) &&
                Objects.equals(registerCode, that.registerCode) &&
                Objects.equals(tipObject, that.tipObject) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode) &&
                Objects.equals(tipType, that.tipType) &&
                Objects.equals(tipTerritory, that.tipTerritory) &&
                Objects.equals(areaNumber, that.areaNumber) &&
                Objects.equals(serviceType, that.serviceType) &&
                Objects.equals(serviceName, that.serviceName) &&
                Objects.equals(brand, that.brand) &&
                Objects.equals(tipDetail, that.tipDetail) &&
                Objects.equals(happenPlace, that.happenPlace) &&
                Objects.equals(status, that.status) &&
                Objects.equals(pollutionType, that.pollutionType) &&
                Objects.equals(involveAmount, that.involveAmount) &&
                Objects.equals(tagName, that.tagName) &&
                Objects.equals(taskState, that.taskState) &&
                Objects.equals(createUser, that.createUser) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateUser, that.updateUser) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(launchTime, that.launchTime) &&
                Objects.equals(receiveTime, that.receiveTime) &&
                Objects.equals(launchUser, that.launchUser) &&
                Objects.equals(fbTime, that.fbTime) &&
                Objects.equals(endTime, that.endTime) &&
                Objects.equals(fkTime, that.fkTime) &&
                Objects.equals(provinceCode, that.provinceCode) &&
                Objects.equals(cityCode, that.cityCode) &&
                Objects.equals(countyCode, that.countyCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(reportInfoId, registerCode, tipObject, enterpriseCreditCode, tipType, tipTerritory, areaNumber, serviceType, serviceName, brand, tipDetail, happenPlace, status, pollutionType, involveAmount, tagName, taskState, createUser, createTime, updateUser, updateTime, launchTime, receiveTime, launchUser, fbTime, endTime, fkTime, provinceCode, cityCode, countyCode);
    }
}
